﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Payment Method Repository Interface
    /// </summary>
    public interface IPaymentMethodRepository
    {
        /// <summary>
        /// Get All Payment Method
        /// </summary>
        /// <returns></returns>
        IQueryable<PaymentMethod> FindAllPaymentMethod();

        /// <summary>
        /// Get Payment Method By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<PaymentMethod> FindPaymentMethodByName(string strQuery);

        /// <summary>
        /// Get Payment Method By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        PaymentMethod GetPaymentMethodById(int id);

        /// <summary>
        /// Add Payment Method in the Database
        /// </summary>
        /// <param name="paymentMethod"></param>
        void Add(PaymentMethod paymentMethod);

        /// <summary>
        /// Delete Payment Method from the Database
        /// </summary>
        /// <param name="paymentMethod"></param>
        void Delete(PaymentMethod paymentMethod);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}